package com.youlai.system.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description ="周期定级分页对象")
@Data
public class PeriodPageVO {
    @Schema(description = "周期定级ID")
    private Long id;

    @Schema(description = "培训司机ID")
    private Long studentId;

    @Schema(description = "课程ID")
    private Long courseId;

    @Schema(description = "部门名称")
    private String deptName;

    @Schema(description = "培训司机工号")
    private String account;

    @Schema(description = "培训司机姓名")
    private String studentName;

    @Schema(description = "人员批次")
    private String sourceName;

    @Schema(description = "故障科目名称")
    private String courseName;

    @Schema(description = "等级")
    private Integer degree;

    @Schema(description = "等级字母表示")
    private String degreeStr;

    @Schema(description = "周期定级用的最新的成绩表ID")
    private Long lastScoreId;

    @Schema(description = "周期定级用的最新的时间")
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime realTime;

    @Schema(description = "定级成绩数量")
    private Integer scoreCount;

    @Schema(description = "周期")
    private Integer period;
}
